// index.js
// 引入当前模块化的JS文件 里面的抛出的方法
import {request} from "../../utils/https"
Page({
  data:{
    swiperList:[]
  },
  onShow(){
    let _self = this;
    let data = {

    }
    request(
      "home/swiperdata",
      data,
      "GET",
      function(res){
        console.log(res)
       _self.data.swiperList = res.data.message;
       console.log(_self.data.swiperList)
       _self.setData({
        swiperList:_self.data.swiperList
       })
      }
    )
  },
  toSearch(){
    wx.navigateTo({
      url: '/pages/search/search',
    })
  }
})
